package com.zr.datamodel;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
/**
 * 发货实体类
 * @author qiuchun
 *
 */
@Entity
@Table(name="rcd_receiving")
public class RcdReceivingDM {
	//收货记录id
	private int id;	
	//收货时间
	private String receivingDate;
	//订单
	private List<OrderDM> order=new ArrayList<>();
	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	@Column(name="receiving_date")
	public String getReceivingDate() {
		return receivingDate;
	}
	public void setReceivingDate(String receivingDate) {
		this.receivingDate = receivingDate;
	}
	@OneToMany
	public List<OrderDM> getOrder() {
		return order;
	}
	public void setOrder(List<OrderDM> order) {
		this.order = order;
	}
	

}
